/**
 * Created by rongyao on 2017/10/18.
 */
var express = require('express');
var router = express.Router();
var dataCtrl = require('../controller/cate.controller')
/* GET users listing. */
router.post('/data', dataCtrl.create);
router.get('/data/:id', dataCtrl.get);
router.post('/data/:id', dataCtrl.update);
router.delete('/data/:id', dataCtrl.remove);
router.post('/list', dataCtrl.list);
router.post('/list/:id', dataCtrl.findIds);
module.exports = router;
